import { Component, OnInit } from '@angular/core';
import { Book } from '../book';
import { BooksService } from '../service/books.service';
import { Router } from '@angular/router';
@Component({
  selector: 'app-master-home',
  templateUrl: './master-home.component.html',
  styleUrls: ['./master-home.component.css']
})
export class MasterHomeComponent implements OnInit {

  constructor(private router: Router) {}

  onClick() {
    this.router.navigate(['login/master/add']);
  }
  onClickToSearch() {
    this.router.navigate(['login/master/search']);
  }
  onClickToRecords() {
    this.router.navigate(['login/master/records']);
  }
  onClickToOlds() {
    this.router.navigate(['login/master/delete']);
  }
  ngOnInit(): void {}
}
